//批改内容
import React, {Component} from 'react'
import {View, Text, StyleSheet} from 'react-native'
import AttachmentManager from '../common/attachment_manager'
import ContentLine from '../common/content_line'

class ReplyDetail extends Component {
    static defaultProps = {
        reply: {}
    }

    render () {
        const reply = this.props.reply
        return (
            <View>
                <ContentLine name={'批改时间:'} content={reply.replied_at} />
                <ContentLine name={'批改内容:'} content={reply.content} />
                <View>
                    <AttachmentManager attachments={reply.attachments} />
                </View>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    answer_column: {
        alignItems: 'center'
    },

    answer_content: {
        alignItems: 'center',
        flex: 1
    }
  });

export default ReplyDetail